Optimal. Leaf size=25 \[ \frac{a x^3}{3}-\frac{b \cos \left (c+d x^3\right )}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0269652, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {14, 3379, 2638} \[ \frac{a x^3}{3}-\frac{b \cos \left (c+d x^3\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 3379
Rule 2638
Rubi steps
\begin{align*} \int x^2 \left (a+b \sin \left (c+d x^3\right )\right ) \, dx &=\int \left (a x^2+b x^2 \sin \left (c+d x^3\right )\right ) \, dx\\ &=\frac{a x^3}{3}+b \int x^2 \sin \left (c+d x^3\right ) \, dx\\ &=\frac{a x^3}{3}+\frac{1}{3} b \operatorname{Subst}\left (\int \sin (c+d x) \, dx,x,x^3\right )\\ &=\frac{a x^3}{3}-\frac{b \cos \left (c+d x^3\right )}{3 d}\\ \end{align*}
Mathematica [A] time = 0.0215153, size = 41, normalized size = 1.64 \[ \frac{a x^3}{3}+\frac{b \sin (c) \sin \left (d x^3\right )}{3 d}-\frac{b \cos (c) \cos \left (d x^3\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.001, size = 27, normalized size = 1.1 \begin{align*}{\frac{a \left ( d{x}^{3}+c \right ) -b\cos \left ( d{x}^{3}+c \right ) }{3\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.965724, size = 28, normalized size = 1.12 \begin{align*} \frac{1}{3} \, a x^{3} - \frac{b \cos \left (d x^{3} + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.66614, size = 49, normalized size = 1.96 \begin{align*} \frac{a d x^{3} - b \cos \left (d x^{3} + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.56678, size = 31, normalized size = 1.24 \begin{align*} \begin{cases} \frac{a x^{3}}{3} - \frac{b \cos{\left (c + d x^{3} \right )}}{3 d} & \text{for}\: d \neq 0 \\\frac{x^{3} \left (a + b \sin{\left (c \right )}\right )}{3} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09267, size = 35, normalized size = 1.4 \begin{align*} \frac{{\left (d x^{3} + c\right )} a - b \cos \left (d x^{3} + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]